package com.oak.designmode._13_builderPattern.eatChicken;

/**
 * 建造者模式
 *
 * @Description  吃鸡选择人物模型栗子🍇
 * @Author guoxy
 * @Date 2020/3/18
 * @Version 1.0
 */
public class Test {

    public static void main(String[] args) {

        // 指导类
        RoleDirector roleDirector = new RoleDirector();

        RoleBuilder man = new ManRole('男');
        roleDirector.makeComputer(man);
        CharacterRole role = man.getCharacterRole();
        System.out.println("男角色：" + role);

        RoleBuilder women = new WomenRole('女');
        roleDirector.makeComputer(women);
        CharacterRole womenRole = women.getCharacterRole();
        System.out.println("女角色：" + womenRole);

    }
}
